#
# Be sure to run `pod lib lint HollyPhoneSdk.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'HollyPhoneSdk'
  s.version          = '1.3.2'
  s.summary          = '合力软电话SDK'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = '合力软电话SDK用于ios端集成sip电话'

  s.homepage         = 'https://gitee.com/hunterxman/holly-phone-sdk.git'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT'}
  s.author           = { 'hunterxman' => '906162426@qq.com' }
  s.source           = { :git => 'https://gitee.com/hunterxman/holly-phone-sdk.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  #s.source_files = 'HollyPhoneSdk/*.{h,m}','HollyPhoneSdk/private/**','HollyPhoneSdk/private/View/*.{h,m}','HollyPhoneSdk/private/controllers/*.{h,m}','HollyPhoneSdk/private/Utils/*.{h,m}'

  s.source_files = 'HollyPhoneSdk.framework/headers/*.h'


  s.public_header_files = "HollyPhoneSdk.framework/headers/*.h"

  s.resources = "HollyPhone.bundle"

  s.vendored_frameworks = 'HollyPhoneSdk.framework'
  
  s.frameworks = "Foundation", "UIKit","AVFoundation"

  s.pod_target_xcconfig = {
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
  'VALID_ARCHS' => 'arm64 x86_64',
  'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/HollyPhoneSdk/'
  }
  s.user_target_xcconfig = {
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
  'VALID_ARCHS' => 'arm64 x86_64',
  'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/HollyPhoneSdk/'
  }

  # s.pod_target_xcconfig = { 
  #  'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/HollyPhoneSdk/pjsip-include/pjlib/include/ ${PODS_ROOT}/HollyPhoneSdk/pjsip-include/pjlib-util/include/ ${PODS_ROOT}/HollyPhoneSdk/pjsip-include/pjmedia/include/ ${PODS_ROOT}/HollyPhoneSdk/HollyPhoneSdk/pjsip-include/pjnath/include/ ${PODS_ROOT}/HollyPhoneSdk/pjsip-include/pjsip/include/',
  #   'LIBRARY_SEARCH_PATHS' => '${PODS_ROOT}/librays/**',
  #   'VALID_ARCHS' => 'x86_64 armv7 arm64',
  #   'CLANG_ENABLE_OBJC_ARC' => 'YES',
  #   'CLANG_ENABLE_MODULES' => 'YES',
  #   'OTHER_CFLAGS' => '-fobjc-arc',
  #   'OTHER_LDFLAGS' => '-ObjC -lc++',
  # }
  
  # s.xcconfig = {
  #   "HEADER_SEARCH_PATHS" => '/Users/hollycrm/Desktop/holly-phone-ios/HollyPhoneSdk/HollyPhoneSdk/pjsip-include/pjlib/include/ /Users/hollycrm/Desktop/holly-phone-ios/HollyPhoneSdk/HollyPhoneSdk/pjsip-include/pjlib-util/include/ /Users/hollycrm/Desktop/holly-phone-ios/HollyPhoneSdk/HollyPhoneSdk/pjsip-include/pjmedia/include/ /Users/hollycrm/Desktop/holly-phone-ios/HollyPhoneSdk/HollyPhoneSdk/pjsip-include/pjnath/include/ /Users/hollycrm/Desktop/holly-phone-ios/HollyPhoneSdk/HollyPhoneSdk/pjsip-include/pjsip/include/',
  #   "LIBRARY_SEARCH_PATHS" => '/Users/hollycrm/Desktop/holly-phone-ios/HollyPhoneSdk/librarys/**'
  # }

  
  # s.library_dir = [
  #   'librays/'
  # ]


  s.static_framework = true

  # s.user_target_xcconfig = {
  #   'GENERATE_INFOPLIST_FILE' => 'YES'
  # }

  # s.vendored_libraries = 'HollyPhoneSdk/Classes/**/*.{a}'
  
  # s.resource_bundles = {
  #   'HollyPhoneSdk' => ['HollyPhoneSdk/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
